define(['knockout'], function(ko) {
	var vm = {
		orderTitle: ko.observable('我的订单'),
		orderList: ko.observableArray(),
		init: function() {
			var that = this;
			$.getJSON('/shop/json/example.json', function(returnData) {
				$.each(returnData.orders, function(index, data) {
					that.orderList.push(data);
				});
			});
		}
	};
	vm.init();
	return vm;
})